package com.fuqi.android.zhongcai.business.shuig.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.fuqi.android.zhongcai.base.ApiUrl;
import com.fuqi.android.zhongcai.business.shuig.request.result.OrderListResult;
import com.fuqi.framework.network.api.AbsRequest;
import com.fuqi.framework.network.params.BaseParams;


/*
*  获取订单列表接口
* */


public class OrderListApi extends AbsRequest<OrderListApi.OrderListParams, OrderListResult[]> {

    public OrderListApi(OrderListParams orderListParams, Listener<OrderListResult[]> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getOrderListUrl(), orderListParams, listener, errorListener, OrderListResult[].class);
    }

    public static class OrderListParams extends BaseParams {

        public OrderListParams(String status, String showCount, String currentPage) {

                put("status", status);
                put("showCount", showCount);
                put("currentPage", currentPage);
        }
    }


}
